home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol07 / 02 / controls / makefile < prev    next >
Makefile  |  1992-02-29  |  963b  |  53 lines

  1. #   MicroScroll Tester Application Makefile
  2. #
  3. #   Kraig Brockschmidt 9/91
  4.  
  5. #Remove '#' from next line for "silent" operation
  6. !CMDSWITCHES +s
  7.  
  8.  
  9. #
  10. #Compiler and assembler flags
  11. #Use "SET RETAIL=1" from MS-DOS to compile non-debug version.
  12. #
  13. !ifndef RETAIL
  14. CLFLAGS = -c -Od -AS -Zipe -Gsw -W3
  15. DEFS=-DDEBUG
  16. !else
  17. CLFLAGS = -c -Os -AS -Zpe -Gsw -W3
  18. DEFS=
  19. !endif
  20.  
  21. #Files on which every C file depends.  Add others as appropriate
  22. INCLS=mustest.h
  23.  
  24. .SUFFIXES: .h .c .asm .obj .exe .cxx .res .rc .bas
  25.  
  26. goal:  mustest.exe
  27.  
  28.  
  29. OBJS   =mustest.obj
  30. RCFILES=mustest.ico
  31.  
  32. #####
  33.  
  34. .c.obj:
  35.     echo ++++++++++
  36.     echo Compiling $*.c
  37.     cl $(CLFLAGS) $(DEFS) $*.c
  38.  
  39.  
  40. .rc.res:
  41.     echo +++++++++
  42.     echo Compiling Resources
  43.     rc -r $*.rc
  44.  
  45.  
  46. mustest.exe : $(OBJS) mustest.res
  47.     link @mustest.lnk
  48.     rc -30 mustest.res
  49.  
  50. ##### Dependencies #####
  51. mustest.obj    : mustest.c  $(INCLS)
  52. mustest.res    : mustest.rc $(INCLS) $(RCFILES)
  53.